package com.zhiyou100.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 控制器测试
 *
 * @author yang
 * @version 1.0.0
 * @date 2020-10-19 21:57
 */
@RestController
@RequestMapping("/test01")
@Slf4j
public class Test01 {
    @GetMapping("/m1")
    public String test01Method(Integer age, String name) {
        log.error("age = {}, name = {}", age, name);
        return name + " ::: " + age;
    }
}
